<?php

class Application_Form_Genetica extends Zend_Form
{

    public function init()
    {
        $this->setMethod('post');
        $id = new Zend_Form_Element_Hidden('id');
        $id->setDecorators(array('ViewHelper'));


        $this->addElement($id);

        $this->addElement('text', 'nombre', array(
            'label' => 'Nombre:',
            'required' => true,
            'validators' => array(
                array('validator' => 'StringLength', 'options' => array(2, 45))
            )
        ));

        $this->addElement('text', 'nombre_largo', array(
            'label' => 'Nombre largo:',
            'required' => true,
            'validators' => array(
                array('validator' => 'StringLength', 'options' => array(2, 45))
            )
        ));

        $this->addElement('submit', 'submit', array(
            'ignore' => true,
            'label' => 'Crear genetica',
        ));
    }


}

